//
//  LHRadioDownloadCell.m
//  EPA
//
//  Created by 卢浩 on 16/4/27.
//  Copyright © 2016年 卢浩. All rights reserved.
//

#import "LHRadioDownloadCell.h"
#import "LHRadioDownloadManager.h"

@implementation LHRadioDownloadCell

- (void)layoutSubviews{
    self.titleLable.text = [[LHRadioDownloadManager shareManager] getTitleWithIndex:self.indexPath.row];
    [[LHRadioDownloadManager shareManager] setProgressBlock:^(float progress) {
        self.progressView.progress = progress;
        self.progressLable.text = [NSString stringWithFormat:@"进度: %.2f %%",progress * 100];
    } CompleteBlock:^(NSString *path) {
        
    } Index:self.indexPath.row];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
